package com.ygqh.baby.service;

import java.util.List;

import com.ygqh.baby.ao.Message;
import com.ygqh.baby.ao.QueryInfo;
import com.ygqh.baby.ao.ResultSet;
import com.ygqh.baby.po.YgUserIdentity;

public interface YgUserIdentityService {

	List<YgUserIdentity> find();

	int findCount();

	YgUserIdentity findById(Long id);

	int deleteSoft(Long[] ids);

	int deleteSoft(Long id);

	int save(YgUserIdentity ygUserIdentity);

	int update(YgUserIdentity ygUserIdentity);

	int saveOrUpdate(YgUserIdentity ygUserIdentity);

	ResultSet<YgUserIdentity> search(QueryInfo queryInfo, String q);

	Message auth(Long userId, String idNo, String name);

	YgUserIdentity findByUserId(Long userId);

	boolean certified(Long userId);

}
